<ion-view view-title="{{menu.name}}" ng-controller="userChangePwd">
  <ion-header-bar align-title="center">
  </ion-header-bar>
  <ion-content>
    <form ng-submit="changeInfo()">
      <div class="item item-divider">
      </div>
      <div class="list login-bg">
        <label class="item item-input">
          <span class="input-label">姓名</span>
          <input id="name" type="text" required value="{{user.username}}">
        </label>
        <div class="item item-divider">
        </div>
        <label class="item item-input">
          <span class="input-label">角色</span>
          <input  type="text"  value="{{user.info}}" readonly>
        </label>
        <label class="item item-input">
          <span class="input-label">联系方式</span>
          <input id="phone" type="text" required value="{{user.email}}">
        </label>
        <label class="item item-input" ng-if="user.flag">
          <span class="input-label">身份证号</span>
          <input id="identityCard" type="text" required value="{{user.identityCard}}">
        </label>
        <div class="item item-divider">
        </div>
        <label class="item">
          <button class="button button-block button-royal" type="submit">提交信息</button>
        </label>
      </div>
    </form>
  </ion-content>
</ion-view>
